package com.yang.frost.blueberry.service.impl;

import com.yang.frost.blueberry.domain.SysOperationLog;
import com.yang.frost.blueberry.mapper.SysOperationLogMapper;
import com.yang.frost.blueberry.service.SysOperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 10296
 * @date 2021/1/20
 * @Description: 系统操作日志
 */
@Service
public class SysOperationLogServiceImpl implements SysOperationLogService {

    @Autowired
    private SysOperationLogMapper operationLogMapper;

    @Override
    public int saveSysOperationLog(SysOperationLog sysOperationLog) throws Exception {

        return operationLogMapper.saveSysOperationLog(sysOperationLog);

    }

    @Override
    public int updateSysOperationLog(SysOperationLog sysOperationLog) throws Exception {

        return operationLogMapper.updateSysOperationLog(sysOperationLog);

    }

    @Override
    public int deleteSysOperationLog(String id) throws Exception {

        return operationLogMapper.deleteSysOperationLog(id);

    }

    @Override
    public List<SysOperationLog> getSysOperationLogPageList(Map<String, Object> paramsMap) throws Exception {

        return operationLogMapper.getSysOperationLogPageList(paramsMap);

    }
}
